<template>
  <div>
    <van-button @click="findU">getTest</van-button>
    <van-button @click="adduser">addUSer</van-button>
    <van-button @click="updateT(333)">updateTest</van-button>
    <van-button @click="deleteT('5fbd22bc-ed3b-453b-ad09-1152f7278e87')">updateTest</van-button>
  </div>
</template>

<script setup lang="ts">
import { getTest, addTest ,updateTest ,deleteTest ,addUser,findUserById} from '@/api/service'
const findU = () =>
findUserById(123123).then((res) => {
    console.log(res)
  })
const adduser = () =>
addUser({ nickname:'test', mobile: '18361777829' }).then((res) => {
    console.log(res)
  })
const updateT = (name) =>  updateTest({ id:'5fbd22bc-ed3b-453b-ad09-1152f7278e87',name:name, desc: '3333333' }).then((res) => {
    console.log(res)
})
  const deleteT = (id) =>deleteTest({id:id}).then((res) => {
    console.log(res)
})
</script>

<style scoped></style>
